export const searchList = [
  {
    type: 'input',
    name: '课程名称',
    field: 'courseName',
  },
  {
    type: 'input',
    name: '授课教师',
    field: 'teacherName',
  },
  {
    type: 'daterange',
    name: '授课时间',
    startDate: 'startDate',
    endDate: 'endDate',
  },
]

export const listColumns = [
  {
    title: '课程名称',
    key: 'courseName',
  },
  {
    title: '授课教师',
    key: 'teacherName',
  },
  {
    title: '授课班级',
    key: 'clazzName',
  },
  {
    title: '教学类型',
    key: 'teachTypeName',
  },
  {
    title: '课程学时',
    key: 'courseHour',
  },
  {
    title: '教学目标',
    key: 'teachTarget',
  },
  {
    title: '授课时间',
    key: 'teachTime',
  },
]

export const actionArr = [
  {
    action: 'look',
    value: '查看',
  },
  {
    action: 'edit',
    value: '编辑',
  },
  {
    action: 'del',
    value: '删除',
  }
]

export const btnList = [
  {
    action: 'add',
    value: '新增',
    auth: ''
  }
];

export const rules = {
  courseName: [
    { required: true, message: '请输入课程名称', trigger: 'change' },
  ],
  collageId: [
    { required: true, message: '请输入所属学院', trigger: 'change' },
  ],
  courseId: [
    { required: true, message: '请输入授课教师', trigger: 'change' },
  ],
  majorId: [
    { required: true, message: '请输入授课专业', trigger: ['change','blur'] },
  ],
  clazzId: [
    { required: true, message: '请输入授课班级', trigger: 'change' },
  ],
  teachTypeId: [
    { required: true, message: '请输入教学类型', trigger: 'change' },
  ],
  courseHour: [
    { required: true, message: '请输入课程学时', trigger: 'change' },
  ],
  teachTarget: [
    { required: true, message: '请输入教学目标', trigger: 'change' },
  ],
  courseEmphasis: [
    { required: true, message: '请输入课程重点', trigger: 'change' },
  ],
  teachWeek: [
    { required: true, message: '请输入教学周次', trigger: 'change' },
  ],
  courseDifficulty: [
    { required: true, message: '请输入课程难点', trigger: 'change' },
  ],
  teachTime: [
    { required: true, message: '请输入授课时间', trigger: 'change' },
  ],
  teachAchievement: [
    { required: true, message: '请输入课程成果', trigger: 'change' },
  ]
}